package me.zhengjie;

import me.zhengjie.modules.quartz.task.pull.FirsthandEstatePullTask;
import me.zhengjie.modules.quartz.task.pull.OrganizationPullTask;
import me.zhengjie.modules.quartz.task.pull.PropertyDependentPullTask;
import me.zhengjie.modules.quartz.task.pull.PropertyPullTask;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.RANDOM_PORT)
public class SyncPullTask {
    @Autowired
    OrganizationPullTask organizationPullTask;

    @Autowired
    FirsthandEstatePullTask firsthandEstatePullTask;
    @Autowired
    PropertyDependentPullTask propertyDependentPullTask;
    @Autowired
    PropertyPullTask propertyPullTask;

//    @Test
//    public void organizationPullTask() {
//        organizationPullTask.corporationPullTask();
//        System.out.println("organizationPullTask");
//    }
//
//    @Test
//    public void propertyDependentPullTask() {
//        propertyDependentPullTask.corporationPullTask();
//        System.out.println("propertyDependentPullTask");
//    }

    @Test
    public void firsthandEstatePullTask() {
        firsthandEstatePullTask.corporationPullTask(null);
        organizationPullTask.corporationPullTask(null);
        System.out.println("firsthandEstatePullTask");
    }

//    @Test
//    public void propertyPullTask() {
//        propertyPullTask.corporationPullTask();
//        System.out.println("organizationPullTask");
//    }


}
